package com.tywj.lib.net.retrofit.request

import com.tywj.lib.net.retrofit.HttpUtil
import com.tywj.lib.net.retrofit.callback.BaseCallback
import io.reactivex.Observable
import okhttp3.ResponseBody
import retrofit2.Response

/**
 * <pre>
 *     author : June Yang
 *     time   : 2020/6/10
 *     desc   : OPTIONS请求
 *     version: 1.0.0
 * </pre>
 */
class OptionsRequest(url: String) : BaseRequest<OptionsRequest>(url) {

    override fun getRequestMethod(callback: BaseCallback<*>?): Observable<Response<ResponseBody>> {
        return HttpUtil.httpConfig.httpMethod.options(url, headers, params)
    }

}